<tagLib name="html" />
<include file="Public:header"/>
	<include file="Public:menu"/>
	<div id="right">
		<div class="app_right_menu">
			<div class="arm_2">
				<a href="__URL__">收件箱</a>
			</div>
			<div class="arm_2">
				<a href="__URL__/sent">发件箱</a>					
			</div>
			<div class="arm_2">
				<a href="__URL__/notify">通知	</a>				
			</div>
			<div class="arm_1 strong">
				写私信					
			</div>
		</div>
		<div class="app_right_count">
		</div>
		<div class="messagebody">
			<form action="__URL__/save" method="POST">
				
				<p>
					<label>收件人：</label><input type="text" id="username" name="username" size="30" value="{$u|getUsernameByUserid}"/>
						
				</p>
				<php>
							if(isset($friendlist)){
						</php>
						<div class="friendlist">
							<ul class="friendlistul">
								<volist name="friendlist" id="friend" empty="没有好友">
								<li class="friendname" id="{$friend['friendid']}">{$friend['username']}</li>
								</volist>
							</ul>
						</div>
						<php>
							}
						</php>
				<p>
					<label>标题：</label><input type="text" name="title" size="30"/>
				</p>
				<p>
					<label>内容：</label><textarea name="content" rows="10" cols="40"></textarea>
				</p>
				<p>
					<label>&nbsp;</label><input type="submit" value="发送" class="input2"/>
					<input type="reset" value="重写" class="input2"/>
					<input type="hidden" name="userid" id="userid" value="{$u}"/>
				</p>
			</form>
		</div>
	</div>
<include file="Public:footer"/>